#include "workerthread.h"

workerThread::workerThread(DataBase *base, int _iter, int _iterImprov, int _improv, int _tabuLength, int _iterJump, int _iterLocalJump, QVector<int> _firstSolution, int _kara, int _nagroda, QObject *parent) :
    QThread(parent)
{
    algorithm = new tabu(base,  _iter,  _iterImprov,  _improv,  _tabuLength,  _iterJump,  _iterLocalJump,  _firstSolution,  _kara,  _nagroda );
}

workerThread::workerThread(){
    algorithm = new tabu();
}

void workerThread::run(){
    algorithm->ConductSearch();
}
